﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using QRCoder;

namespace Halftone
{
    public class QrCode
    {
        public Bitmap GetQr(string s,int i)
        {
            QRCodeGenerator generator = new QRCodeGenerator();
            QRCodeData qrCodeData = generator.CreateQrCode(s,QRCodeGenerator.ECCLevel.Q);
            QRCode code = new QRCode(qrCodeData);
            
            return code.GetGraphic(i);
        }
    }
}
